//
//  UIView+XCFrame.h
//  ImportantThing
//
//  Created by wanglixing on 16/2/25.
//  Copyright © 2016年 xc. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (XCFrame)
@property (nonatomic,assign)CGFloat x;
@property (nonatomic,assign)CGFloat y;
@property (nonatomic,assign)CGFloat width;
@property (nonatomic,assign)CGFloat height;
@property (nonatomic,assign)CGSize size;
@property (nonatomic,assign)CGFloat centerX;
@property (nonatomic,assign)CGFloat centerY;

/**
 * 设置圆角
 *
 */
@property (nonatomic) IBInspectable CGFloat cornerRadius;

/**
 * 设置边框和边框颜色
 *
 */
- (void)setBorderWidth:(CGFloat)width andColor:(UIColor *)color;
@end
